module.exports = {
    devServer: {
        proxy: {
            '/api': {
                //代理api
                target: 'https://autumnfish.cn',  //代理接口
                changeOrigin: true,  //是否跨域
                ws: true,   //proxy websockets
                pathRewrite: {
                    //重写路径
                    '^/api': ''   //代理路径
                }
            }
        }
    }
}